#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/3/8 15:33
# @Author : 闫峰
# @File    : setstosck.py
import json

from third_services.jdw.ept.api import get_result_bei


def jd_ept_seller_stock_getStock(ordersourceid):
    """
    根据skuids查询商品可售数
    """
    method = "jd.ept.seller.stock.setInStock"
    param = {
    "operateStockParamSet": [
        {
            "num": 0,
            "skuId": 1039571606,
            "storeCode": -1
        }
    ]
}
    print(get_result_bei(ordersourceid, method, json.dumps(param)))
    # print(json.dumps(get_result_bei(ordersourceid, method, json.dumps(param)),indent=4))


if __name__ == '__main__':
    jd_ept_seller_stock_getStock(18272)